package Assignment.Test6;

public class Animal {
    private String name;
    private int age;
    private  String color;

    public Animal() {
    }

    public Animal(int age, String color,String name) {
        this.age = age;
        this.color = color;
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name = name;
    }


    public void eat(String something){
        System.out.println(name+"吃"+something);
    }
}
